package demoStudent;

public class Student_C {
    private String name;
    private int age;
    private long id;
    {
        long id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public Student_C() {
    }

    public Student_C(String name, int age, long id) {
        this.name = name;
        this.age = age;
        this.id = id;
    }
    public void show(){
        System.out.println("姓名："+name+"年龄："+age+"学号："+id);
    }

    public static void main(String[] args) {
        Student_C stu=new Student_C("mingge",20,01120123);
        stu.show();

    }
}
